<?php
$v_staff_id = $_SESSION['staff_id'];
if (isset($_REQUEST['hdn_item_id'])){
	$v_staff_id = $_REQUEST['hdn_item_id'];
}
if ($_ISA_INTEGRATE_LDAP == 1 && (substr($v_staff_id,0,3)== $_ISA_LDAP_USERNAME_ATTRIBUTE."=")){
	$arr_single_user_detail = LDAP_GetSingleUser($v_staff_id);
	//echo $v_staff_id;
	//var_dump($arr_single_user_detail);
}else{	
	if ($v_staff_id !="0"){
		if(_is_sqlserver()){
			$cmd = @mssql_init("USER_UserGetDetail",$conn);
			@mssql_bind($cmd,"@p_user_id",$v_staff_id,SQLINT4);
			$result = @mssql_execute($cmd);	
			$arr_single_user_detail = _get_row_to_array($result);
			@mssql_free_result($result);
			//echo $arr_single_user_detail[0][7];
			//var_dump($arr_single_user_detail);
		}
	}
}
//echo $v_staff_id;
//exit;

?>